# import json
# import requests
# data = {
#     "statuslist": [
#         {
#             "aaa": {
#                 "age": 19
#             }
#         }
#     ],
#     "code": 0,
#     "msg": "",
#     "gender": True
# }


# headers = {
#     "authorization": "Bearer eyd0eXAnOiAnSldUJywgCidhbGcnOiAnSFMyNTYnCn0=.Cgl7CgkJImlkIjogMSwKCQkibmlja25hbWUiOiAiYWRtaW4iLAoJCSJleHAiOiAxNjI4Njk0MzY1Cgl9Cgk=.d7bb8d3f43fde453a31d9758f1e8559ce6ed9d1eb129504e1fbcbe807f766236"
# }

# r = requests.post("https://bug-api.hyahm.com/get/permstatus", headers=headers)
# # print(type(r.text))
# # print(type(r.json()))
# print(type(json.loads(r.text)))
# # print(data["statuslist"][0]["aaa"]["age"])


data = {
    "collections": [{
        "id": 1939576,
        "slug": "601339335d47",
                "title": "网络模块",
                "avatar": "https://upload.jianshu.io/collections/images/1939576/WX20210202-094817_2x.png",
                "owner_name": "守护地中海的花"
    }, {
        "id": 1934961,
        "slug": "4a92bb5e2292",
                "title": "web前端",
                "avatar": "https://upload.jianshu.io/collections/images/1934961/crop1608832164816.jpg",
                "owner_name": "于心甚暖"
    }, {
        "id": 1885456,
        "slug": "a071ea36f167",
                "title": "铲子",
                "avatar": "https://upload.jianshu.io/collections/images/1885456/1590782695.jpg",
                "owner_name": "caskbear"
    }, {
        "id": 1819435,
        "slug": "227c8c6eabff",
                "title": "知识点",
                "avatar": "https://upload.jianshu.io/collections/images/1819435/%E5%B1%8F%E5%B9%95%E5%BF%AB%E7%85%A7_2019-09-17_%E4%B8%8B%E5%8D%886.10.05.png",
                "owner_name": "hello_JSH"
    }, {
        "id": 1879085,
        "slug": "be96d03105c5",
                "title": "提升",
                "avatar": "https://upload.jianshu.io/collections/images/1879085/1588774945.jpg",
                "owner_name": "想养猫而不得"
    }, {
        "id": 1859200,
        "slug": "b39c6e7aa1a6",
                "title": "http协议",
                "avatar": "https://upload.jianshu.io/collections/images/1859200/1582785448.jpg",
                "owner_name": "e9ad5dc70dd4"
    }, {
        "id": 1838074,
        "slug": "39d03b5ee2c8",
                "title": "Android",
                "avatar": "https://upload.jianshu.io/collections/images/1838074/4d21c98ada3167cfe516d70ed4fbed27.jpg",
                "owner_name": "隔水樵夫"
    }],
    "page": 1,
    "total_pages": 10
}


print(data["collections"][0]["id"])
